<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="author" content="order by dede58.com" />
    <title>青果交友论坛</title>
    <link rel="stylesheet" type="text/css" href="css/common.css" />
    <link rel="stylesheet" type="text/css" href="css/main.css" />
</head>

<body>
    <div class="topbar-wrap white">
        <div class="topbar-inner">
            <div class="topbar-logo-wrap">
                <ul class="navbar-list">
                    <li><a class="on" href="#">首页</a></li>
                    <li><a href="#">论坛首页</a></li>
                </ul>
            </div>
            <div class="top-info-wrap">
                <ul class="top-info-list">
                    <li><a href="/">
                            <%= admin.username %>
                        </a></li>
                    <li><a href="/logout">退出</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#">常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="#">大厅</a></li>
                        <li><a href="#">主页</a></li>
                        <li><a href="#"> <input class="common-text required" name="name" size="12"
                                    value="<%= admin.username %>" type="text" readonly="true">帖子</a></li>
                        <li><a href="/info">关注</a></li>
                    </ul>
                </li>
            </ul>
        </div>

    </div>
    <div>
        <!--/sidebar-->
        <div class="main-wrap">

            <div class="crumb-wrap">
                <div class="crumb-list"><a href="#">首页</a><span class="crumb-step">&gt; </span><span
                        class="crumb-name">管理</span></div>
            </div>
            <div class="search-wrap">
                <div class="search-content">
                    <form action="/search" method="get">
                        <table class="search-tab">
                            <tr>
                                <th width="120">搜索范围:</th>
                                <td>
                                    <select name="searchBy" id="">
                                        <option value="name">姓名</option>
                                        <option value="gender">性别</option>
                                        <option value="department">标题</option>
                                        <option value="remarks">内容</option>
                                    </select>
                                </td>
                                <th width="70">关键字:</th>
                                <td><input class="common-text" placeholder="关键字" name="keywords" value="" id=""
                                        type="text"></td>
                                <td><input class="btn123456" value="查询" type="submit"></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
            <div class="result-wrap">
                <div class="result-title">
                    <div class="result-list">
                        <a id="addEmployee" href="/add">发表帖子</a>
                    </div>
                </div>
                <div class="modal-box">
                    <!--左上边框-->
                    <div class="t_line_box">

                    </div>
                    <!--右上边框-->
                    <div class="t_line_box">

                    </div>
                    <% employees.forEach(function(employee){ %>
                        <div class="zhuye">

                            <div class="zhuye-shang">
                                <%= employee.department %>
                            </div>
                            <hr>
                            <div class="zhuye-zhengwen">
                                <%= employee.remarks%>
                            </div>
                            <hr>
                            <div class="zhuye-zuozhe"><a href="#">
                                    <%= employee.name%>
                                </a></div>
                            <hr>
                            <div class="zhuye-zuozhe">
                                <!-- <a class="link-del" href="/del?id=<%= employee.id %>">删除</a>-->
                                <a class="link-del" href="/modify?id=<%= employee.id %>">详情</a>
                                <a class="link-del" href="/del?id=<%= employee.id %>"></p></a>
                            </div>

                        </div>
                        <% }); %>
                            </table>
                            <div class="list-page">
                                <%= employees.length %> 条 1/1 页
                            </div>
                </div>
            </div>
        </div>
        <!--左下边框-->
        <div class="t_line_box">

        </div>
        <!--右下边框-->
        <div class="t_line_box">

        </div>
    </div>

    <!--/main-->
    </div>
</body>

</html>